home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Magazine / C_Tutorial / Part-6 / asl3 / gui.c < prev    next >
C/C++ Source or Header  |  1997-10-27  |  544b  |  27 lines

  1. #include "gui.h"
  2. #include "bitmap.h"
  3. #include "drawwin.h"
  4. #include "gadgets.h"
  5. #include "menu.h"
  6. #include "screen.h"
  7. #include "toolwin.h"
  8. #include "visual.h"
  9.  
  10. int openGUI(UBYTE depth, UWORD width, UWORD height, ULONG displayid)
  11. {
  12.     return openScreen(depth, width, height, displayid) &&
  13.                  createBitmap() && createVisual() &&
  14.                  createMenuStrip() && createGadgets() &&
  15.                  openToolWin() && openDrawWin();
  16. }
  17.  
  18. void closeGUI()
  19. {
  20.     closeDrawWin();
  21.     closeToolWin();
  22.     freeGadgets();
  23.     freeMenuStrip();
  24.     freeVisual();
  25.     freeBitmap();
  26.     closeScreen();
  27. }